﻿using System;
using SAKS.Models;
using SAKS.ViewModels;
using System.Collections.Generic;

namespace SAKS.IServices
{
    public interface IUserServices : IHasSession
    {
        string UserName { get; set; }


        IList<Project> GetUserProjects();
        IList<Project> GetUserProjects(string username);

        IList<String> GetAllUsers(int? pageIndex, int? pageSize, out long totalRecords);

        PersonInfo GetPersonInfoByUserName(string username);
        IList<PersonInfo> GetPersonInfoByRealName(string name);

        void AddPersonInfo(string username,PersonInfo personinfo);
        bool UpdatePersonInfo(PersonInfo personinfo);
    }
}
